home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac Magazin/MacEasy 19
/
Mac Magazin and MacEasy Magazine CD - Issue 19.iso
/
Online
/
HttpServerƒ
/
•Mac_Classes
/
TContext.cp
< prev
next >
Wrap
Text File
|
1996-01-05
|
2KB
|
49 lines
// TContext.cp - Macintosh Task Context class object
//
// Apple Macintosh Developer Technical Support
// Written by: Vinne Moscaritolo
//
// Copyright (work in progress) Apple Computer, Inc All rights reserved.
//
// You may incorporate this sample code into your applications without
// restriction, though the sample code has been provided "AS IS" and the
// responsibility for its operation is 100% yours. However, what you are
// not permitted to do is to redistribute the source as "DSC Sample Code"
// after having made changes. If you're going to re-distribute the source,
// we require that you make it clear in the source that the code was
// descended from Apple Sample Code, but that you've made changes.
//
#include "TContext.h"
// CodeWarrior Exception handling
TContext::TContext()
{
// __new_exception_state(&fExceptionState, fCatchBuffer, sizeof(fCatchBuffer));
}
// ---------------------------------------------------------------------------
// TContext:Save
// ---------------------------------------------------------------------------
// Save Macintosh Context
void TContext::Save()
{
// save exception-handling context
// __switch_exception_state(&fExceptionState, &fExceptionState);
}
// ---------------------------------------------------------------------------
// TContext:Restore
// ---------------------------------------------------------------------------
// Restore Macintosh Context
void TContext::Restore()
{
ExceptionState gone;
// restore exception-handling context
// __switch_exception_state(&fExceptionState, &gone);
}